[SPARK-20569][SQL] RuntimeReplaceable functions should not take extra parameters#17876
[SPARK-20569][SQL] RuntimeReplaceable functions should not take extra parameters#17876cloud-fan wants to merge 1 commit intoapache:masterfrom
Conversation
|
Test build #76501 has finished for PR 17876 at commit
|
|
Test build #76570 has finished for PR 17876 at commit
|
|
Test build #76587 has finished for PR 17876 at commit
|
|
retest this please |
|
Test build #76599 has finished for PR 17876 at commit
|
|
retest this please |
|
Test build #76609 has finished for PR 17876 at commit
|
|
Test build #76616 has finished for PR 17876 at commit
|
|
retest this please |
|
Test build #76654 has finished for PR 17876 at commit
|
| val maxNumArgs = all.map(_.getParameterCount).max | ||
| all.filterNot(_.getParameterCount == maxNumArgs) | ||
| } else { | ||
| tag.runtimeClass.getConstructors |
There was a problem hiding this comment.
What is the reason why we originally called getDeclaredConstructor instead of getConstructor?
There was a problem hiding this comment.
getDeclaredConstructor will find a specific constructor matching the given parameter types. Now I have some special logic about choosing the constructor, so I call getConstructors to get all the constructors.
|
LGTM |
… parameters ## What changes were proposed in this pull request? `RuntimeReplaceable` always has a constructor with the expression to replace with, and this constructor should not be the function builder. ## How was this patch tested? new regression test Author: Wenchen Fan <wenchen@databricks.com> Closes #17876 from cloud-fan/minor. (cherry picked from commit b4c99f4) Signed-off-by: Xiao Li <gatorsmile@gmail.com>
|
Thanks! Merging to master/2.2 |
… parameters ## What changes were proposed in this pull request? `RuntimeReplaceable` always has a constructor with the expression to replace with, and this constructor should not be the function builder. ## How was this patch tested? new regression test Author: Wenchen Fan <wenchen@databricks.com> Closes apache#17876 from cloud-fan/minor.
What changes were proposed in this pull request?
RuntimeReplaceablealways has a constructor with the expression to replace with, and this constructor should not be the function builder.How was this patch tested?
new regression test